<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<fmt:message key="titulo.cadastro" var="title">
    <fmt:param>
        <fmt:message key="titulo.grupo" />
    </fmt:param>
</fmt:message>
<%@ include file="/WEB-INF/jsp/includes/topo.jspf" %>
<form action="${path}/pages/grupo/salvar" method="POST" class="formCadastro">
    
    <c:if test="${not empty entidade.id}">
        <input type="hidden" name="_method" value="PUT"/>
        <label><fmt:message key='campo.id' /></label>
        <input type="text" name="entidade.id" value="${entidade.id}" readonly="readonly" />
    </c:if>
    
    <label><fmt:message key='campo.nome' /></label>
    <input type="text" name="entidade.nome" value="${entidade.nome}"/>

    <div class="actions">
        <input type="submit" value="<fmt:message key='acao.salvar' />" />
        <input type="button" value="<fmt:message key='acao.limpar' />" onclick="javascript:window.location.assign('${path}/pages/grupo/novo')" />
        <input type="button" value="<fmt:message key='acao.pesquisar' />" onclick="javascript:window.location.assign('${path}/pages/grupo')" />
    </div>
</form>
<%@ include file="/WEB-INF/jsp/includes/rodape.jspf" %>